<?php
namespace app\index\controller;

use think\Controller;
use think\View;
use Jssdk\JSSDK;
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/8/1
 * Time: 9:55
 */

class Comment extends Common{
    // 评论
    public function index(){
        $param = input('param.');
        $param['member_id'] = session('member_id');
        $data = $this->local_invoke_api('get_order_info', $param);
//        dump($data['data']);
        $this->assign('data', $data['data']);
        return view();
    }

    /**
     * 保存评论内容
     * @return \think\response\Json
     */
    public function save_comment() {
        $param = input('param.');
        $param['member_id'] = session('member_id');
        $data = $this->local_invoke_api('save_comment', $param);
        return json($data);
    }
}